from unicodedata import normalize, name

s1 = 'café'
s2 = 'cafe\N{COMBINING ACUTE ACCENT}'
print(s1, s2)
print(len(s1), len(s2))
print(s1 == s2)

print(normalize('NFC', s1) == normalize('NFC', s2))
# 'NFC', 'NFD', 'NFKC', and 'NFKD'

ohm = '\u2126'
print(name(ohm))
ohm_c = normalize('NFC', ohm)
print(name(ohm_c))
print(ohm == ohm_c)
print(normalize('NFC', ohm) == normalize('NFC', ohm_c))

# 'NFKC', and 'NFKD'见原书
